//
//  SwitchView.h
//  Molian
//
//  Created by 胡津 on 15/3/12.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//
#define titleHeight 30

#import <UIKit/UIKit.h>


@protocol SwitchViewDelegate <NSObject>

@optional
//点击是触发的方法
- (void)clickButtonIsLeft:(BOOL)left;
@end

@interface SwitchView : UIView
{
    NSInteger currentTag;
    UIColor *black;
    UIColor *light;
    UIFont *normalFont;
    UIFont *lightFont;
    UIView *Line;
}
@property (nonatomic ,assign)id<SwitchViewDelegate>delegate;
@property ( strong) void (^ButtonActionBlock)(NSInteger buttonTag);
@property (nonatomic ,strong)NSArray * TitleArr;
//一定要加copy关键字
-(void)swipeAction:(NSInteger)tag;

-(void)sliding:(CGFloat)x;
-(void)initview;

@end
